package com.bapoint.springsecurity.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName RestController
 * @Description TODO
 * @Author 王逸攀
 * @Date 2024/3/9 11:04
 * @Version 1.0
 */
@Controller
@ResponseBody
public class RestController {

    @GetMapping("/app/api")
    public String app() {
        return "app";
    }

    @GetMapping("/admin/api")
    public String admin() {
        return "admin";
    }


    @GetMapping("/user/api")
    public String user() {
        return "user";
    }

    @GetMapping("/index")
    public String index() {
        return "Hello,JWT!";
    }
}
